
<!DOCTYPE html>
<html lang="en">
<head>
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
	<meta charset="utf-8" />
	<title>商家分类管理</title>

     [#include "/admin/common/commonurl.html"]
     <style type="text/css">
     .titleinfo{
     width: 60px;
     }
     </style>
</head>

<body class="no-skin">
<div id="navbar" class="navbar navbar-default">
<script type="text/javascript">
	try{ace.settings.check('navbar' , 'fixed')}catch(e){}
</script>

[#include "/admin/common/navbar.html"]

<!-- /.navbar-container -->
</div>

<div class="main-container" id="main-container">
<script type="text/javascript">
	try{ace.settings.check('main-container' , 'fixed')}catch(e){}
</script>

<div id="sidebar" class="sidebar                  responsive">
<script type="text/javascript">
	try{ace.settings.check('sidebar' , 'fixed')}catch(e){}
</script>
[#include "/admin/common/shortcuts.html"]
<!-- /.sidebar-shortcuts -->

<!-- .nav-list -->
					[#include "/admin/common/commonmenu.html"]
                      	<ul class="nav nav-list">
                      	[@menustag id=1]
						[#list list as item]
					     [@menu item "1,44,47"]
					     [/@menu]
					     [/#list]
					     [/@menustag]
					     </ul>
<!-- /.nav-list -->

<div class="sidebar-toggle sidebar-collapse" id="sidebar-collapse">
	<i class="ace-icon fa fa-angle-double-left" data-icon1="ace-icon fa fa-angle-double-left" data-icon2="ace-icon fa fa-angle-double-right"></i>
</div>

<script type="text/javascript">
	try{ace.settings.check('sidebar' , 'collapsed')}catch(e){}
</script>
</div>

<div class="main-content">
	<div class="breadcrumbs" id="breadcrumbs">
		<script type="text/javascript">
			try{ace.settings.check('breadcrumbs' , 'fixed')}catch(e){}
		</script>

		<ul class="breadcrumb">
			<li>
				<i class="ace-icon fa fa-home home-icon"></i>
				<a href="#">首页</a>
			</li>

			<li class="active">商家分类管理</li>
		</ul><!-- /.breadcrumb -->

		<div class="nav-search" id="nav-search">
			<form class="form-search">
							<span class="input-icon">
								<input type="text" placeholder="Search ..." class="nav-search-input" id="nav-search-input" autocomplete="off" />
								<i class="ace-icon fa fa-search nav-search-icon"></i>
							</span>
			</form>
		</div><!-- /.nav-search -->
	</div>


	
				<div class="page-content">
				
					<!-- /.page-header -->
					<div class="row">
												<div class="col-xs-12">
							<ul class="breadcrumb">
								[#if tops??]
								[#list tops as item]
								[#if item.id==id]
								<li>
									${item.cname}
								</li>
								[#else]
								<li>
									<a  href="${siteurl}admin/shopcategory/view_list.htm?id=${item.id}">${item.cname}</a>
									[/#if]
								</li>
								[/#list]
								[/#if]
							</ul>
						</div>
						
						<div class="col-xs-12">

							<div class="widget-box">

								<form class="form-inline" role="form"
								action="${siteurl}admin/shopcategory/model_save.htm" method="post">
									<input type="hidden" name="parent.id" value="${id}">
									<input type="hidden" name="pid" value="${id}">
									<div class="widget-body">
										<div class="widget-main">
											<div class="row">
												<div class="col-xs-12 col-sm-12 ">
													<div class="form-group">
														<label for="control-label no-padding-right">分类</label>
														<input type="text" name="cname" placeholder="分类 "
														class="form-control search-query">

													</div>
													<div class="form-group">
														<label for="control-label no-padding-right">英文分类</label>
														<input type="text" name="name" placeholder="英文分类 "
														class="form-control search-query">

													</div>
													<div class ="form-group" >

														<label for="control-label no-padding-right">排序号</label>
														<input class="form-control"
														type="number" placeholder="排序号" name="sortnum" id="path">
													</div>
													<div class ="form-group">
														<span>
															<button class="btn btn-purple btn-sm" type="submit">
																添加 <i
																class="ace-icon fa fa-plus icon-on-right bigger-110"></i>
															</button> </span>
													</div>
												</div>
											</div>
										</div>
									</div>
								</form>
							</div>
						</div>
						<div class="col-xs-12">
							<form id="listForm">
							<input type="hidden" name="id" value="${id}">
							<div class="table-responsive">
								<table class="table table-striped table-bordered table-hover">
									<tr>
										<td class="col-xs-4">分类名称</td>
										<td class="col-xs-2">英文名称</td>
										<td class="col-xs-2">商家数量</td>
										<td class="col-xs-2 text-center">排序号</td>
										<td class="col-xs-2 text-center">操作</td>
									</tr>
									[#list list as item]
									<tr id="trr${item.id}">
										<td>${item.cname!""}</td>
										<td>${item.name!""}</td>
										<td>${item.nums!""}</td>
										<td class="text-center">${item.sortnum!"0"}</td>
										<td class="text-center">
											<div
												class="visible-md visible-lg hidden-sm hidden-xs btn-group">

											<a class="btn btn-xs btn-info"
													href="${siteurl}admin/shopcategory/view_edit.htm?id=${item.id}&pid=${item.parent.id}&pageNumber=${page.pageNumber}">
														<i class="icon-edit bigger-120">更新</i>
											</a> 
											<a class="btn btn-xs btn-info"
													href="${siteurl}admin/shopcategory/view_list.htm?id=${item.id}">
														<i class="icon-edit bigger-120">子分类</i>
											</a> 											
											<a  class="btn btn-xs btn-danger"
													href="${siteurl}admin/shopcategory/model_delete.htm?id=${item.id}&pid=${item.parent.id}&pageNumber=${page.pageNumber}">
														<i class="icon-trash bigger-120">删除</i>
												</a>
											</div>
										</td>
									</tr>
									[/#list]
								</table>
							</div>
	                        				      [#include "/admin/common/page2.html"]

	                       [@pager page ][/@pager]       
	                       </form>          
						</div>
					</div>


				</div>
</div><!-- /.main-content -->

     [#include "/admin/common/footer.html"]

</div><!-- /.main-container -->

<!-- basic scripts -->

     [#include "/admin/common/scripts.html"]

<!-- inline scripts related to this page -->
</body>
</html>
